package com.cans.model.pms;


import com.cans.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 * @author: cans
 * Date: 2017/10/3
 * Description: 角色类
 */
@Entity
@Table(name = "sys_role")
public class SysRole extends BaseModel {

    /**
     * 所属角色组
     */
    @Column(name = "role_group_id",length = 32)
    private String roleGroupId;
    /**
     * 角色名称
     */
    @Column(name = "role_name",length = 50)
    private String  roleName;
    /**
     * 角色编码
     */
    @Column(name = "role_code",length = 50)
    private String roleCode;
    /**
     * 描述
     */
    @Lob
    @Column(name = "memo")
    private String memo;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRoleGroupId() {
        return roleGroupId;
    }

    public void setRoleGroupId(String roleGroupId) {
        this.roleGroupId = roleGroupId;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }
}
